Related Work

The original Ruby HAML implementation is excellent. If you're not tied to PHP, go Ruby! http://haml-lang.com/

Don't miss Wikipedia's page about Haml.

Alternative PHP Implementations

Summary: if a working alternative had existed, HAML-TO-PHP would not have been built. These are included for reference only.

phphaml

http://phphaml.sourceforge.net/

Flaws (rev 90):

  • Code does not pay attention to != vs &= vs =
  • Code only has one htmlentities call, used for attribute values. HTML content is not quoted at all.

phamlp

http://code.google.com/p/phamlp/
https://github.com/MarcWeber/phamlp

The parser will never be compliant without a rewrite. The author appears to be inactive.

Fammel

https://github.com/dxw/Fammel

The idea was to use a proper parser/lexer/grammar. Current status: broken, admitted by the author. Higher priorities have taken over.

phaml

http://phaml.sourceforge.net
  • Quick and minimal — under 150 lines of code
  • Parser based on regex (hard to maintain)
  • No proper quoting; only a subset of HAML is supported

If you don't want to pay for HAML-TO-PHP this could be an option — but not for production use.

kohaml

kohaml

From the README: "This module is old and outdated and does not yet work for Kohana V3."

Link missing? Contact support.

License